<?php

include_once dirname(__FILE__)."/../classes/collection.class.php";

if(isset($_GET['collectionid']) && is_numeric($_GET['collectionid']))
{
  $collection = new Collection($_GET['collectionid']);
  if(isset($_GET['changeName']))
  {
    $collection->setDetails($_GET['changeName'], FALSE);
    echo $collection->getName();
  }
  if(isset($_GET['changeDescription']))
  {
    $collection->setDetails(FALSE, $_GET['changeDescription']);
  }
}

?>
